Namespaces

Functions

string
__(string $msgid)

Translates a string, alias for _gettext.

void
_bind_textdomain_codeset(string $domain, string $codeset)

Dummy compatibility function, MoTranslator assumes everything is using same character set on input and output.

void
_bindtextdomain(string $domain, string $path)

Sets the path for a domain.

string
_dgettext(string $domain, string $msgid)

Translates a string.

string
_dngettext(string $domain, string $msgid, string $msgidPlural, int $number)

Plural version of gettext.

string
_dnpgettext(string $domain, string $msgctxt, string $msgid, string $msgidPlural, int $number)

Plural version of pgettext.

string
_dpgettext(string $domain, string $msgctxt, string $msgid)

Translate with context.

string
_gettext(string $msgid)

Translates a string.

string
_ngettext(string $msgid, string $msgidPlural, int $number)

Plural version of gettext.

string
_npgettext(string $msgctxt, string $msgid, string $msgidPlural, int $number)

Plural version of pgettext.

string
_pgettext(string $msgctxt, string $msgid)

Translate with context.

string
_setlocale(int $category, string $locale)

Sets a requested locale.

void
_textdomain(string $domain)

Sets the default domain.